package com.aggeek.springbootlearning.thread.study;

/**
 * author:liuao
 * description:
 * Date: create on 14:50 2017/12/12
 * modify by:
 */
public class ThreadTest {
    public static void main(String[] args){
        TestA a = new TestA();
        TestA b = new TestA();
        Thread t1 =new Thread(new Runnable() {
            @Override
            public void run() {
                a.printA();
            }
        });
        t1.start();
        Thread t2 =new Thread(a::printA);
        t2.start();
    }
}
